package com.baike.domian;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author:pjm
 */
@Data
@Accessors(chain = true)
public class TbTeacherDTO implements Serializable {


    private Long teacherId;

    @ApiModelProperty(value = "教师姓名")
    private String teacherName;

    @ApiModelProperty(value = "教师密码")
    private String teacherPassword;

    @ApiModelProperty(value = "年龄")
    private Integer teacherAge;

    @ApiModelProperty(value = "性别(1.男,2女)")
    private Integer teacherSex;

    @ApiModelProperty(value = "注册日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date teacherRegisterTime;

    @ApiModelProperty(value = "学历")
    private String teacherEducation;

    @ApiModelProperty(value = "头像/身份认证")
    private String teacherHead;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;

    private String teacherMobile;

    //业务字段
    private String code;
}
